package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.goods.GoodsCategorySpec;
import com.hoshiicloud.goods.entity.goods.GoodsSpecifications;
import com.hoshiicloud.goods.vo.GoodsSpecificationsVo;

import java.util.List;

/**
 * 类目规格
 * @author linjx on 2019/7/25
 */
public interface GoodsCategorySpecService extends IService<GoodsCategorySpec> {

    /**
     * 根据类目id, 回去该类目的所有规格 和 每个规格下的所有规格值
     */
    List<GoodsSpecificationsVo> getProperSpecByCategoryId(Long id);

    /**
     * 获取关联的规格
     * @param categoryId
     * @return
     */
    List<GoodsSpecifications> listByCategoryId(Long categoryId);

    Integer deleteByCategoryId(Long categoryId);


    Boolean saveBatch1(List<GoodsCategorySpec> list);


}
